//
//  QueryFollowNumberOperation.m
//  PlayBall
//
//  Created by Huawen Liu on 12-7-2.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "JddQueryFollowNumberOperation.h"

@implementation JddQueryFollowNumberOperation

@synthesize lotID;
@synthesize pageNo;
@synthesize pageSize;

- (void)main{
    JddNetDataCommunication *netDataCommunication = [[JddNetDataCommunication alloc] init];
    
    NSString *bodyString = [JddParameterBuilder queryfollowNumOfLotID:self.lotID 
                                                            pageNo:self.pageNo
                                                         pageSize:self.pageSize];
    
    NSData *dataLotteryIssue = [netDataCommunication requestDataByPostBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
    [((NSObject*)self.delegate) performSelectorOnMainThread:@selector(QueryFollowNumberOperationResult:) withObject:dataLotteryIssue waitUntilDone:NO];                    
}

@end
